//
// Copyright (C) OpenSim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//

#ifndef __INET_IPV4NETWORKCONFIGURATORPFC_H
#define __INET_IPV4NETWORKCONFIGURATORPFC_H

#include <algorithm>
#include "inet/common/Topology.h"
#include "inet/networklayer/configurator/base/NetworkConfiguratorBase.h"
#include "inet/networklayer/contract/ipv4/Ipv4Address.h"
#include "inet/networklayer/contract/IInterfaceTable.h"
#include "inet/networklayer/ipv4/IIpv4RoutingTable.h"
#include "inet/networklayer/ipv4/Ipv4InterfaceData.h"
#include "inet/custom/controlAdapter_m_m.h"
#include "inet/networklayer/configurator/ipv4/Ipv4NetworkConfigurator.h"

namespace inet {

/**
 * This module provides the global static configuration for the Ipv4RoutingTable and
 * the Ipv4 network interfaces of all nodes in the network.
 *
 * For more info please see the NED file.
 */
class INET_API Ipv4NetworkConfiguratorPFC : public Ipv4NetworkConfigurator
{
  public:
  void computeConfiguration();
  int inetModuleNum = 0;
  protected:
    /**
     * Reads interface elements from the configuration file and stores result.
     */
  void autoInterfaceConfiguration(Topology& topology);
  // void sendMsgToAdapter(InterfaceEntry *interfaceEntry);
  // void configureAllInterfaces();


};

} // namespace inet

#endif // ifndef __INET_IPV4NETWORKCONFIGURATORPFC_H

